<?php
include_once('user_global.php');
if($conf->Get_value('enable_user')!='checked')
bn_redirect('../error.php');
bn_include_lib('bn_jquery');
$theme->add_block('body');

if(isset($_POST['cmd']))
{
    $usr=new bn_user;
    $usr->change_lang($_POST['value'],$user_info->user);
    die;
}
$theme->add_script(jquery_select('#lang'));
?>
<table>
<tr>
	<td><?= $lang[3] ?></td>
	<td><?= $info->user ?></td>
</tr>
<tr>
	<td><?= $lang[6] ?></td>
	<td><?= $info->rolname ?></td>
</tr>
<tr>
	<td><?= $lang[7] ?></td>
	<td><?= $info->nikname ?></td>
</tr>
<tr>
	<td><?= $lang[8] ?></td>
	<td><?= $lan->lang_list(array('name' => 'lang','cssclass'=>'select','selected'=>$info->lang)) ?></td>
</tr>
</table>
<?php	
$theme->render();
?>